package cn.edu.scnu.semart.model.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("order_item")
public class OrderItem {
    @TableId(value = "item_id", type = IdType.AUTO)
    private Integer itemId;

    @TableField("order_id")
    private Integer orderId;

    @TableField("product_id")
    private Integer productId;

    @TableField("product_name")
    private String productName;

    @TableField("product_description")
    private String productDescription;

    @TableField("product_price")
    private BigDecimal productPrice;

    @TableField("quantity")
    private Integer quantity;

    @TableField("product_image")
    private String productImage;

    @TableField("seller_id")
    private Integer sellerId;

    @TableField("seller_name")
    private String sellerName;
}
